package com.kingdee.eas.custom.ws;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import com.kingdee.eas.custom.ws.bean.CustomerBean;
import com.kingdee.eas.custom.ws.bean.GroupBean;
import com.kingdee.eas.custom.ws.bean.WsResult;
import com.kingdee.eas.custom.ws.bean.SupplierAssignResultBean;
import com.kingdee.eas.custom.ws.bean.SupplierBean;
import java.lang.String;
import com.kingdee.eas.custom.ws.bean.CustomerAssignResultBean;
import com.kingdee.eas.custom.ws.bean.StandardBean;
import com.kingdee.eas.common.EASBizException;



public abstract class AbstractCSSPManagerFacadeControllerBean extends AbstractBizControllerBean implements CSSPManagerFacadeController
{
    protected AbstractCSSPManagerFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("01317964");
    }

    public String createCustomer(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("3f37c974-10b5-42e0-b696-661e4b1fea74"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_createCustomer(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _createCustomer(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public WsResult createCustomerImpl(Context ctx, CustomerBean customerBean) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("483f6d8f-9ae5-4f2a-9a56-0055276b50db"), new Object[]{ctx, customerBean});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            WsResult retValue = (WsResult)_createCustomerImpl(ctx, customerBean);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (WsResult)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected WsResult _createCustomerImpl(Context ctx, CustomerBean customerBean) throws BOSException, EASBizException
    {    	
        return null;
    }

    public String assignCustomer(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("407d9d78-98b8-40c1-a83a-f17c2ee65e48"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_assignCustomer(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _assignCustomer(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public CustomerAssignResultBean assignCustomerImpl(Context ctx, String number, String createOrgNo, String useOrgNo) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("06febc52-259f-48b1-baa9-84b0da2e0fb0"), new Object[]{ctx, number, createOrgNo, useOrgNo});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            CustomerAssignResultBean retValue = (CustomerAssignResultBean)_assignCustomerImpl(ctx, number, createOrgNo, useOrgNo);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (CustomerAssignResultBean)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected CustomerAssignResultBean _assignCustomerImpl(Context ctx, String number, String createOrgNo, String useOrgNo) throws BOSException, EASBizException
    {    	
        return null;
    }

    public String getCustomer(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6f9cfb3c-ad61-45c8-bc95-7f4e2c9d9b59"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_getCustomer(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _getCustomer(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public String createSupplier(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("70f8ebfd-909b-43e3-a564-0e454ec41e3c"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_createSupplier(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _createSupplier(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public WsResult createSupplierImpl(Context ctx, SupplierBean supplierBean) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f7521c7a-cf1b-4f72-afa9-a290745d18ac"), new Object[]{ctx, supplierBean});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            WsResult retValue = (WsResult)_createSupplierImpl(ctx, supplierBean);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (WsResult)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected WsResult _createSupplierImpl(Context ctx, SupplierBean supplierBean) throws BOSException, EASBizException
    {    	
        return null;
    }

    public String assignSupplier(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("eae24a62-62fd-4ff9-a7f7-b7e6c9ccfa2b"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_assignSupplier(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _assignSupplier(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public SupplierAssignResultBean assignSupplierImpl(Context ctx, String number, String createOrgNo, String useOrgNo) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ef51c82c-20d2-4df6-96c9-45889b7bd4ba"), new Object[]{ctx, number, createOrgNo, useOrgNo});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            SupplierAssignResultBean retValue = (SupplierAssignResultBean)_assignSupplierImpl(ctx, number, createOrgNo, useOrgNo);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (SupplierAssignResultBean)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected SupplierAssignResultBean _assignSupplierImpl(Context ctx, String number, String createOrgNo, String useOrgNo) throws BOSException, EASBizException
    {    	
        return null;
    }

    public String getSupplier(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b3c56f6f-c370-4fd2-8586-1a8a5238e0ff"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_getSupplier(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _getSupplier(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public String createStandard(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("89ccbb48-1aab-4890-b2e3-99164c671cf3"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_createStandard(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _createStandard(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public WsResult createStandardImpl(Context ctx, StandardBean standardBean) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("9e0fb42c-ac67-402d-9db3-10d5dc10ee10"), new Object[]{ctx, standardBean});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            WsResult retValue = (WsResult)_createStandardImpl(ctx, standardBean);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (WsResult)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected WsResult _createStandardImpl(Context ctx, StandardBean standardBean) throws BOSException, EASBizException
    {    	
        return null;
    }

    public String getStandard(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e79fb6c6-e122-479f-8c0b-c40f3dd4f84c"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_getStandard(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _getStandard(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public String createGroup(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f5918678-b75f-455a-bebd-244da508efd2"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_createGroup(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _createGroup(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

    public WsResult createGroupImpl(Context ctx, GroupBean groupBean) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("031ff77d-50f8-46aa-af4c-2bb623ee7266"), new Object[]{ctx, groupBean});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            WsResult retValue = (WsResult)_createGroupImpl(ctx, groupBean);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (WsResult)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected WsResult _createGroupImpl(Context ctx, GroupBean groupBean) throws BOSException, EASBizException
    {    	
        return null;
    }

    public String getGroup(Context ctx, String data) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("fac42bb1-7078-4ad2-af2f-1b70d604fea4"), new Object[]{ctx, data});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_getGroup(ctx, data);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _getGroup(Context ctx, String data) throws BOSException
    {    	
        return null;
    }

}